<?php
class SpareModel extends BaseModel
{
	var $table  = 'spare';
	var $prikey = 'spare_id';
	var $_name  = 'spare';
	var $alias  = 'spare';
	var $_relation = array(
		'has_ss' => array(
			'model' => 'order',
			'type' => HAS_MANY,
			'foreign_key' => 'spare_id',
			'refer_key'=>'spare_id'
		)
	);
}